ThemeTrackDrawInfo
Your application fills out the applicable fields of a
ThemeTrackDrawInfo
structure to fully describe any given track control. The
ThemeTrackDrawInfo
structure is available with Appearance Manager 1.1 and later.
struct ThemeTrackDrawInfo {
ThemeTrackKind kind;
Rect bounds;
SInt32 min;
SInt32 max;
SInt32 value;
UInt32 reserved;
ThemeTrackAttributes attributes;
ThemeTrackEnableState enableState;
UInt8 filler1; // padding
union {
ScrollBarTrackInfo scrollbar;
SliderTrackInfo slider;
ProgressTrackInfo progress;
} trackInfo;
};
typedef struct ThemeTrackDrawInfo ThemeTrackDrawInfo;
Field descriptions
-
kind
-
A value of type
ThemeTrackKind
, specifying the type of track to be drawn. See
Theme Track Kind Constants
for descriptions of possible values.
-
bounds
-
A structure of type
Rect
specifying the dimensions and position of the track, in local coordinates.
-
min
-
A signed 32-bit integer specifying the minimum value for the track.
-
max
-
A signed 32-bit integer specifying the maximum value for the track.
-
value
-
A signed 32-bit integer specifying the current value for the track.
-
reserved
-
Reserved.
-
attributes
-
A value of type
ThemeTrackAttributes
specifying additional attributes of the track, such as whether the track has an indicator. See
Theme Track Attributes Constants
for descriptions of possible values.
-
enableState
-
A value of type
ThemeTrackEnableState
specifying the current state of the track control; see
Theme Track Enable State Constants
for descriptions of possible values.
-
trackInfo
-
A union of the
ScrollBarTrackInfo
,
SliderTrackInfo
, and
ProgressTrackInfo
structures. Your application fills in the structure that is appropriate for the kind of track with which you are working. See
ScrollBarTrackInfo
,
SliderTrackInfo
, and
ProgressTrackInfo
for details on these structures.
© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)